package example.DataSetTest;

import grpc.htsoft.DataBase.Cell;
import grpc.htsoft.DataBase.DataSet;
import grpc.htsoft.DataBase.Row;
import grpc.htsoft.DataBase.Status;

import static grpc.htsoft.DataBase.Status.NOTHING_VALUE;

public class Test {
    public static void main(String[] args) {
        System.out.println("Hello world!");
        Cell c = Cell.newBuilder().setKey("name").setValue("zgw1").build();
        Cell c2 = Cell.newBuilder().setKey("sex").setValue("man").build();
        Row r1 = Row.newBuilder().addCells(c).addCells(c2).setStatusValue(NOTHING_VALUE).build();

        Cell c3 = Cell.newBuilder().setKey("name").setValue("zgw2").build();
        Cell c4 = Cell.newBuilder().setKey("sex").setValue("feman").build();
        Row r2 = Row.newBuilder().addCells(c3).addCells(c4).setStatusValue(NOTHING_VALUE).build();


        DataSet dataset = DataSet.newBuilder().addRows(r1).addRows(r2).build();
        System.out.println(dataset);

    }


}
